package com.efun.center.http.service;

import com.efun.center.entity.EmailServer;
import com.efun.center.http.annotation.HttpHandler;
import com.efun.center.http.annotation.HttpService;
import com.efun.center.http.config.DataType;
import com.efun.center.http.handler.HttpGetHandler;
import com.efun.center.http.handler.HttpPostHandler;
import org.springframework.stereotype.Service;

@Service("distributeService")
@HttpService(project = "distribute")
public interface DistributeService {

    @HttpHandler(type = HttpPostHandler.class, contentType = DataType.JSON, params = {HttpPostHandler.ENTITY})
    String saveEmailServer(EmailServer emailServer);

    @HttpHandler(type = HttpPostHandler.class, contentType = DataType.JSON, params = {HttpPostHandler.ENTITY})
    String updateEmailServer(EmailServer emailServer);

    @HttpHandler(type = HttpGetHandler.class, params = {"ids"})
    String deleteEmailServer(String ids);

}
